package com.keepercloud.qqchat.framework.common.result;

import lombok.Data;

/**
 * @author liyk
 * @date 2018-04-05 下午 10:59
 */
@Data
public class Result {

    private boolean success;
    private int state;
    private Object data;

    public Result() {
        this.success = true;
        this.state = ResultState.SUCCESS;
    }

    public Result(boolean success, int state) {
        this.success = success;
        this.state = state;
    }

    public Result( Object data) {
        this.success = true;
        this.state = ResultState.SUCCESS;
        this.data = data;
    }
    public Result(boolean success, int state, Object data) {
        this.success = success;
        this.state = state;
        this.data = data;
    }

}
